package org.i1510.common.dao;
import org.i1510.common.po.SysData;
import org.i1510.common.po.SysUser;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface ISysDataDao extends IBaseJpaDao<SysData, String>{   
	

    @Query("SELECT a from SysUser a WHERE a.name =:name AND a.pw =:pw") 
    public SysUser findByPs(@Param("name")String name,@Param("pw")String pw); 
    @Query("SELECT a from SysData a WHERE a.fdCode =:fdCode") 
    public SysData findByfdCode(@Param("fdCode")String fdCode); 
/********************以下是标准接口*********************************************************/    
    @Query("SELECT a from SysData a WHERE a.docId =:docId") 
     public SysData findById(@Param("docId")String docId); 
/********************以上是标准接口*********************************************************/    
}
 